SequencingNodeReader.CreateNavigator Method

Return the XPathNavigator for this resource.

Parent Type: SequencingNodeReader

Namespace: Microsoft.LearningComponents.Manifest

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public XPathNavigator CreateNavigator ()

Remarks

This allows an application to get custom namespaced data (e.g. "foo:bar") from the XML.

Note that because SCORM allows a <sequencing> node that has an IDRef attribute and is not in a <sequencingCollection> refer to a <sequencing> node that has an ID attribute (equal to the IDRef of the previously mentioned <sequencing>) and is in a <sequencingCollection>, if the <sequencing> node read by this SequencingNodeReader has a valid IDRef attribute, the XML returned in the XPathNavigator of this method contains the synthesis of the node read by this SequencingNodeReader and the node referenced by the IDRef attribute.

Following SCORM's rules, the direct child nodes of the current node take precedence over the direct child nodes of the referenced node.

Example

C#
If there is the following:

            <sequencingCollection>
              <sequencing ID="seq1">
                <deliveryControls completionSetByContent="true"/>
                <limitConditions attemptLimit="2"/>
              </sequencing>
            </sequencingCollection>

            and there is also a <sequencing> node elsewhere such as:

            <sequencing IDRef="seq1">
              <limitConditions attemptLimit="3"/>
            </sequencing>

            The synthesized XML from CreateNavigator would contain:

            <sequencing IDRef="seq1">
              <deliveryControls completionSetByContent="true"/>
              <limitConditions attemptLimit="3"/>
            </sequencing>

            where the <limitConditions> exists in the IDRef node, and takes precedence over the one with the ID.